package com.keeping.aiimagery.Config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author:zfx-t
 * @version:1.0
 */
@Configuration
public class CorsConfig implements WebMvcConfigurer {

//    @Override
//    public void addCorsMappings(CorsRegistry registry) {
////        registry.addMapping("/**")
////
////                .allowedOrigins("http://39.99.148.46:8081")
////
////             //   .allowedOrigins("http://localhost:8081")
////
////                .allowedMethods("*")
////                .allowedHeaders("*")
////                .allowCredentials(true);
//    }

}
